package com.bwie.common.domain.request;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Pattern;
import java.math.BigDecimal;

/**
 * @className: User
 * @Description: TODO
 * @version: v1.８.0
 * @author:
 * @date:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class UserReq {
    private Integer id;
    private String username;
    private String password;
    @Pattern(regexp = "1[3-9][0-9]{9}")
    private String phone;
    private Integer roleId;
    private BigDecimal balance;

    private String code;
    /**
     * 标记退款或者扣款
     */
    private String sort;
}
